package com.yihu.beans;

import java.io.Serializable;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

public class DerivativesCategory implements Serializable{
	
	@Min(value=0,message="DerivativesCategory id不能小于0")
	public int id;
	
	@NotNull(message="DerivativesCategory 名字不能为空")
	public String name;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

}
